/**
  ******************************************************************************
  * @file    var_tbl.h 
  * @author  Dajin Li
  * @version V0.0.1
  * @date    08-08-2015 
  * @brief   This file contains CANopen specific functions.
  *			  	 
  *          
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; KION(SZ) R&D Center
  *
  * Licensed under KION, (the "License");
  *
  ******************************************************************************
  */


#ifndef _VAR_TBL
#define _VAR_TBL
/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"
#include "Global.h"

/********************************************************************************************************
*Macros
********************************************************************************************************/
#define VAR_PART_NUMBER_INDEX              0
#define VAR_SERIAL_NUMBER_INDEX            16
#define VAR_DATE_CODE_INDEX                17
#define VAR_HW_VER_INDEX                   18
#define VAR_LCD_BKLIGHT_INDEX              124

/********************************************************************************************************
*Global variables
********************************************************************************************************/
// Persistent Hidden Common                  Index Line  File
extern u16 date_code;					    //	3
extern char serial_number[];					//	4
extern s16 canopen_system_status_flags;     //  683 -  561
extern s16 can_nmt_state;                   //  685 -  563
extern u16 hardware_revision;               //
extern s8  LCD_Bklight;
extern u32 seed_3;
extern u32 key_4;
extern u32 seed_5;
extern u32 key_6;
extern char part_number[];
extern u32 software_version;
extern s16 (null)(void);
extern char hardware_id[];
extern const s16 MAX_KWP_DATA_OBJECT_DEF;
extern kwp_data_st kwp_data_params[];
extern const s16 MAX_KWP_ECU_OBJECT_DEF;
extern kwp_data_st kwp_ecu_params[];
extern char software_id[];
extern char software_id_app[];
/********************************************************************************************************
*Global functions
********************************************************************************************************/
#endif

